package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Repository
public interface OrderSettingDao {

    long findCountByOrderDate(Date orderDate);

    void updateNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);

    //List<OrderSetting> getOrderSettingByMonth(Map<String, String> map);

    //List<OrderSetting> getOrderSettingByMonth(String date);

    List<Map<String, Object>> getOrderSettingByMonth(String date);

    OrderSetting findOrderSettingByDate(Date orderDate);

    void editNumberByOrderDate(Date orderDate);
}
